import Vue from "vue";
import App from "./App";
import "./uni.promisify.adaptor";

Vue.config.productionTip = false;

App.mpType = "app";

import uView from "uview-ui";
Vue.use(uView);

const app = new Vue({
    ...App,
});

// 引入请求封装，将app参数传递到配置中
require('services/request.js')(app)

// 引入Api
import Api from './api/index';
Vue.use(Api,app);

// 引入封装工具
import auth from './utils/auth';
Vue.use(auth,app);

app.$mount();
